﻿@{
    Layout = null;
}
@using Bigger.Base;
@using CJAtech.BBS.DataEntity;
@model List<ArticleInfo>

@if (Model.IsNoNull())
{
    foreach (ArticleInfo objArticleInfo in Model)
    { 
    <div class="topicBox">
        <div class="topicCon pd15">
            <p class="personImgDate">
                <span class="perImg db">
                    <a href="/club/user/1000000">
                        <img class="postUserAvatar1000000 bImg" src="http://dev.www.idengpao.com/upload/face/1000017s.jpg" style="display: block;" height="38" width="38">
                    </a>
                    <i class=""></i>
                    <span class="timeT">@objArticleInfo.ArticleAuthor<i><em>@objArticleInfo.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")</em></i></span>

                    <span class="locationCon db locB"><i class="locInco commF"></i>上海市杨浦区黄兴路</span>

                </span>
                <span class="perDate db" style="display: none;">
                    <a class="PerPopBtn incoA db" tid="635" href="javascript:;"></a>
                </span>
                <span style="display: none" tid="635" class="perPop">
                    <a href="javascript:;" class="perBCon db banThread">标记为广告</a>
                </span>
            </p>
            <div class="detailCon">
                <p class="ad"></p>
                <p class="contentbox contenttext">
                    <a href="/guangqi/detail/@objArticleInfo.ArticleId">@string.Format("[{0}]{1}", objArticleInfo.SysTag, objArticleInfo.ArticleTitle)</a>
                </p>

                <div class="slideBox">
                    <div class="slideContainer txtc">

                        <ul class="slideRow txtc cfix" style="width: auto;">
                            <li data-count="0" style="width: auto; height: auto;">
                                <img style="max-height: 300px;" src="http://dev.www.idengpao.com/upload/project/20150403/323d3eb92dd94e69885ea0bd80c397d2.jpg" data-big="http://dev.www.idengpao.com/upload/project/20150403/154110615e1140f2ab78ebc79d305f96.jpg"></li>
                        </ul>

                    </div>
                </div>
            </div>
            <div class="cfix">
                <span class="replyShare db fr">

                    <a class="like" data-praised="0" href="javascript:;" data-pid="@objArticleInfo.ArticleId" data-uid="1000000" data-uname="Capricair"><i class="noPraise"></i><span class="num">@objArticleInfo.DiggCount</span></a>
                    <!--<a class="shareBtn" href="javascript:;"><i class="incoS spr"></i>分享</a>-->
                    <a class="threadReply" href="/guangqi/detail/@objArticleInfo.ArticleId" data-pid="@objArticleInfo.ArticleId" data-uid="1000000" data-username="Capricair" data-reply="0">
                        <i class="incoR spr"></i><span class="num">6</span></a>
                </span>
            </div>
        </div>

        <div class="replyBox topicList noPerImg">
            <ul id="rlist12" class="replylist">

                <li id="comment35">

                    <span><a href="/club/user/1000000">Capricair</a>：</span>

                    <span>
                        <img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"></span>
                    <a href="javascript:void(0)" class="threadReply" data-pid="12" data-uid="1000000" data-username="Capricair">回复</a>&nbsp;&nbsp;

                </li>

                <li id="comment36">

                    <span><a href="/club/user/1000000">Capricair</a>：</span>

                    <span>
                        <img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"></span>
                    <a href="javascript:void(0)" class="threadReply" data-pid="12" data-uid="1000000" data-username="Capricair">回复</a>&nbsp;&nbsp;

                </li>

                <li id="comment37">

                    <span><a href="/club/user/1000000">Capricair</a>：</span>

                    <span>
                        <img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"><img src="http://dev.www.idengpao.com/common/emotion/mp/e102.gif" width="25"></span>
                    <a href="javascript:void(0)" class="threadReply" data-pid="12" data-uid="1000000" data-username="Capricair">回复</a>&nbsp;&nbsp;

                </li>

            </ul>

            <p class="more" data-pid="12">
                <a href="/guangqi/detail/@objArticleInfo.ArticleId">更多</a>共6条回复
            </p>

        </div>
    </div>
    }
}
@*<script src="~/Content/libs/jquery-1.8.2.js"></script>*@
<script type="text/javascript">
    $("#loadNext").attr("data-max", "5");
    $(".replylist").each(function () {
        //if ($(this).find("li").length == 0) {
        $(this).parents(".replyBox").hide();
        //}
    });

    //顶，攒
    function Digg(Source, ArticleId) {
        var $digg = $(this).next();
        $.ajax({
            type: 'Post',
            url: "/guangqi/digg/" + ArticleId,
            data: {},
            dataType: 'JSON',
            success: function (objInvokeResult) {
                if (objInvokeResult.ResultCode == "Success") {
                    var diggCount = Number($digg.val());
                    diggCount++;
                    $digg.val(diggCount);
                }
                $(this).removeAttr("onclick");
            }
        });
    }
</script>
